package com.nz2004.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Integer id;
    private String username;
    private boolean gender;
    //正常请求时间格式
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

}
